<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 九号
  Date: 2022/3/29
  Time: 16:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>博客后台-增加文章</title>
    <link href="${pageContext.request.contextPath}/admin/css/home.css" type="text/css" rel="stylesheet" />
    <script src="/ckeditor/ckeditor.js"></script>
    <script type="text/javascript">
        window.onload = function()
        {
            CKEDITOR.replace( 'TextArea1');
        };
    </script>
</head>
<body>
<%--头部--%>
<jsp:include page="/admin/login/top.jsp"/>
<div class="main">
<jsp:include page="/admin/login/left.jsp"/>
<div class="home">
<form id="Article_add" name="Form1"
      action="${pageContext.request.contextPath}/addArticle" method="post"  >

    &nbsp;
    <table cellSpacing="1" cellPadding="5" width="100%" align="center"
           bgColor="#eeeeee" style="border: 1px solid #8ba7e3" border="0">
        <tr>
            <td class="ta_01" align="center" bgColor="#ceade2" colSpan="4"
                height="26"><strong><STRONG>添加文章</STRONG> </strong>
            </td>
        </tr>
        <tr>
            <td align="center" bgColor="#fdf8f8" class="ta_01">文章标题：</td>
            <td class="ta_01" bgColor="#ffffff"><input type="text" name="title" class="bg"/></td>
        </tr>
        <tr>
            <td align="center" bgColor="#fdf8f8" class="ta_01">文章类别：</td>
            <td class="ta_01" bgColor="#ffffff">
                <select name="typename" id="category">
                    <c:forEach items="${listType}" var="n">
                        <option value="${n.typeName}">${n.typeName}</option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <TR>
            <TD class="ta_01" align="center" bgColor="#fdf8f8">文章内容：</TD>
            <TD class="ta_01" bgColor="#ffffff" colSpan="3">
                <textarea class="ckeditor" name="content" id="TextArea1"/></textarea>
                <%--        <textarea name="description" cols="30" rows="3" style="WIDTH: 96%"></textarea>--%>
            </TD>
        </TR>
        <tr>
            <td class="ta_01" style="WIDTH: 100%" align="center"
                bgColor="#fdf8f8" colSpan="4">
                <input type="submit" class="button_ok" value="确定">
                <FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
                <input type="reset" value="重置" class="button_cancel">
                <FONT face="宋体">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </FONT>
                <INPUT class="button_ok" type="button" onclick="history.go(-1)" value="返回" />
                <span id="Label1"></span>
            </td>
        </tr>
    </table>
</form></div>
</div>
<jsp:include page="/admin/login/bottom.jsp"/>
</body>
</html>
